You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Vector Structure > Vector Operators > Vector Constructor > Vector.Vector Constructor ([In] int, [In] bool, [In] bool)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Vector.Vector Constructor ([In] int, [In] bool, [In] bool)

Constructor of the record.

Syntax
C#
Visual Basic
public Vector([In] int ALength, [In] bool aIsComplex, [In] bool aIsDouble);

Returns a Vector with internal TVec object created explicitely with Length property set to aLength and Complex property set to IsComplex. Call this constructor, if the Vector type variable is a global variable with a long life span.

var a,b: Vector; bvec: TVec; begin a := Vector.Create(true); //create from object cache via CreateIt //this constructor can be omitted, because it is implictely called //the first time that the variable is used. //However: b := Vector.Create(10); //Similar to bvec := TVec.Create; try bvec.Size(10); finally bvec.Free; //b is freed on the exit from the procedure end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!